5-E
Simple site for the info you need...
  • Add Local Admin
  • Backup Dogecoin Wallet
  • Batch Start Powershell
  • Copy A File(s) To All Users On A PC
  • CPU Load Test
  • Disable Users
  • Email Group Members
  • Email With Powershell
  • Exchange Total Size
  • Export to XLSX
  • Export User Cert
  • Get System Info
  • Import Active Directory Module
  • Last Login For All Computer
  • Last Login For All Users
  • Last Login For Select Users
  • List Domain controllers
  • List Groups (With Count) In Active Directory To TXT
  • List Groups (With Count) In Active Directory To XLSX
  • List Groups For A User(s)
  • List Groups In Active Directory to TXT
  • List Home Directory
  • List Members In A Group(s)
  • Password Generator
  • Ping Test
  • Printer Reset
  • Run A Process Every Few Minutes
  • Search For Files On All Local Drives
  • Show iSCSI Device And Disk Number
  • Uninstall Java

Search Local Drives For Files

Use this tool to scan all local drives (hard drives, thumb drives, CD/DVD drives) while skipping mapped drives. You can change the .pst extention to meet your needs. It will export the resualts to a .CSV format. *pro-tip* couple this bat with a GPO to run at start up!
CODE:
set name=0 
for /f "tokens=1 delims=^|" %%z in ('wmic os get name ^|find "server"') do (set name=%%z) 
if  neq 0 (goto end) 
echo Last ran %date% %time% >C:\Users\%username%\AppData\Local\PST.log 
if exist "\\Server\Share\pst\%username%-%computername%.csv" (del /q "\\Server\Share\pst\%username%-%computername%.csv") 
for /f "tokens=1" %%a in ('wmic logicaldisk get caption^,description ^| find ":" ^| find /v "Network Connection"') do (for /f "tokens=*" %%b in ('dir /a-d /b /w /s %%a^\*.pst') do (echo %username%,%computername%,%%b,%%~zb >>\\Server\Share\pst\%username%-%computername%.csv)) 
:end 
Use at your own risk
Download: Search For Files On All Local Drives.zip

Tag(s): Batch Local PC Security


Could you spare a few coins?
Dogecoin - D838u1m9YRdzVVu8CZ1JsR78WHgQmUZSr8
Bitcoin - 13iKLoPXcWEYcGtqCi4UcjGQEs7r6M6LFc
Thank you
  • Home

  • Batch
  • Email
  • Exchange
  • How To
  • Local PC
  • Powershell
  • Security